<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0,viewport-fit=cover"><title>Xuan的博客 - Xuan.top</title><meta name="author" content="Xuan"><meta name="copyright" content="Xuan"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta property="og:type" content="website">
<meta property="og:title" content="Xuan的博客">
<meta property="og:url" content="http://leesmile.gitee.io/smile/page/12/index.html">
<meta property="og:site_name" content="Xuan的博客">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://leesmile.gitee.io/smile/img/avatarImg.bmp">
<meta property="article:author" content="Xuan">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://leesmile.gitee.io/smile/img/avatarImg.bmp"><link rel="shortcut icon" href="/smile/img/favicon.png"><link rel="canonical" href="http://leesmile.gitee.io/smile/page/12/index.html"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/smile/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox/fancybox.min.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = {
  root: '/smile/',
  algolia: undefined,
  localSearch: undefined,
  translate: undefined,
  noticeOutdate: undefined,
  highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: false,
    post: false
  },
  runtime: '',
  dateSuffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: undefined,
  lightbox: 'fancybox',
  Snackbar: undefined,
  source: {
    justifiedGallery: {
      js: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery/dist/fjGallery.min.js',
      css: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery/dist/fjGallery.min.css'
    }
  },
  isPhotoFigcaption: false,
  islazyload: false,
  isAnchor: false,
  percent: {
    toc: true,
    rightside: false,
  },
  autoDarkmode: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
  title: 'Xuan的博客',
  isPost: false,
  isHome: true,
  isHighlightShrink: false,
  isToc: false,
  postUpdate: '2024-04-09 09:45:27'
}</script><noscript><style type="text/css">
  #nav {
    opacity: 1
  }
  .justified-gallery img {
    opacity: 1
  }

  #recent-posts time,
  #post-meta time {
    display: inline !important
  }
</style></noscript><script>(win=>{
    win.saveToLocal = {
      set: function setWithExpiry(key, value, ttl) {
        if (ttl === 0) return
        const now = new Date()
        const expiryDay = ttl * 86400000
        const item = {
          value: value,
          expiry: now.getTime() + expiryDay,
        }
        localStorage.setItem(key, JSON.stringify(item))
      },

      get: function getWithExpiry(key) {
        const itemStr = localStorage.getItem(key)

        if (!itemStr) {
          return undefined
        }
        const item = JSON.parse(itemStr)
        const now = new Date()

        if (now.getTime() > item.expiry) {
          localStorage.removeItem(key)
          return undefined
        }
        return item.value
      }
    }
  
    win.getScript = url => new Promise((resolve, reject) => {
      const script = document.createElement('script')
      script.src = url
      script.async = true
      script.onerror = reject
      script.onload = script.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        script.onload = script.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(script)
    })
  
    win.getCSS = (url,id = false) => new Promise((resolve, reject) => {
      const link = document.createElement('link')
      link.rel = 'stylesheet'
      link.href = url
      if (id) link.id = id
      link.onerror = reject
      link.onload = link.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        link.onload = link.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(link)
    })
  
      win.activateDarkMode = function () {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = function () {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
          if (t === 'dark') activateDarkMode()
          else if (t === 'light') activateLightMode()
        
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    
    const detectApple = () => {
      if(/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
        document.documentElement.classList.add('apple')
      }
    }
    detectApple()
    })(window)</script><link rel="stylesheet" href="/css/font.css" media="defer" onload="this.media='all'"><link rel="stylesheet" href="/css/custom.css" media="defer" onload="this.media='all'"><link rel="stylesheet" href="/css/whiteLine.css" media="defer" onload="this.media='all'"><link rel="stylesheet" href="/css/progress_bar.css" media="defer" onload="this.media='all'"><link rel="stylesheet" href="/css/cat.css"><link rel="stylesheet" href="/css/readPercent.css"><link rel="stylesheet" href="https://cdn1.tianli0.top/npm/element-ui@2.15.6/packages/theme-chalk/lib/index.css"><div id="myscoll"></div><!-- hexo injector head_end start --><link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Zfour/Butterfly-double-row-display@1.00/cardlistpost.min.css"/>
<style>#recent-posts > .recent-post-item >.recent-post-info > .article-meta-wrap > .tags:before {content:"\A";
  white-space: pre;}#recent-posts > .recent-post-item >.recent-post-info > .article-meta-wrap > .tags > .article-meta__separator{display:none}</style>
<link rel="stylesheet" href="https://npm.elemecdn.com/hexo-butterfly-footer-beautify@1.0.0/lib/runtime.css" media="print" onload="this.media='all'"><!-- hexo injector head_end end --><meta name="generator" content="Hexo 6.3.0"></head><body><div id="web_bg"></div><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src="https://leesmile.gitee.io/smile/img/avatarImg.bmp" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="sidebar-site-data site-data is-center"><a href="/smile/archives/"><div class="headline">文章</div><div class="length-num">142</div></a><a href="/smile/tags/"><div class="headline">标签</div><div class="length-num">36</div></a><a href="/smile/categories/"><div class="headline">分类</div><div class="length-num">32</div></a></div><hr class="custom-hr"/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/smile/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/smile/archives/"><i class="fa-fw fas fa-archive"></i><span> 文章</span></a></div><div class="menus_item"><a class="site-page" href="/smile/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/smile/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div></div></div></div><div class="page home" id="body-wrap"><header class="full_page" id="page-header"><nav id="nav"><span id="blog-info"><a href="/smile/" title="Xuan的博客"><span class="site-name">Xuan的博客</span></a></span><div id="menus"><div class="menus_items"><div class="menus_item"><a class="site-page" href="/smile/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/smile/archives/"><i class="fa-fw fas fa-archive"></i><span> 文章</span></a></div><div class="menus_item"><a class="site-page" href="/smile/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/smile/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div></div><div id="nav-right"><a class="meihua faa-parent animated-hover" onclick="toggleWinbox()" title="美化设置-自定义你的风格" id="meihua-button"><svg class="faa-tada icon" style="height:26px;width:26px;fill:currentColor;position:relative;top:8px" aria-hidden="true"><use xlink:href="#icon-tupian1"></use></svg></a><a class="sun_moon faa-parent animated-hover" onclick="switchNightMode()" title="浅色和深色模式转换" id="nightmode-button"><svg class="faa-tada" style="height:25px;width:25px;fill:currentColor;position:relative;top:7px" viewBox="0 0 1024 1024"><use id="modeicon" xlink:href="#icon-moon"></use></svg></a></div><div id="toggle-menu"><a class="site-page" href="javascript:void(0);"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="site-info"><h1 id="site-title">Xuan的博客</h1></div><div id="scroll-down"><i class="fas fa-angle-down scroll-down-effects"></i></div></header><main class="layout" id="content-inner"><div class="recent-posts" id="recent-posts"><div class="recent-post-item"><div class="recent-post-content left"><div class="recent-post-cover"><img class="article-cover" src="https://gitee.com/leesmile/image-host/raw/master/images/202310201611606.jpg" onerror="this.onerror=null;this.src='/smile/img/404.jpg'" alt="DataTime包# 文章名称"></div><div class="recent-post-info"><a class="article-title" href="/smile/2023/06/02/Java/JavaSE/DataTime%E5%8C%85/" title="DataTime包# 文章名称"><div class="article-title-link">DataTime包# 文章名称</div></a><div class="recent-post-meta"><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2023-06-02T01:53:46.000Z" title="发表于 2023-06-02 09:53:46">2023-06-02</time></span><span class="article-meta"><span class="article-meta-separator"> |</span><svg class="meta_icon post-ui-icon" style="width:12px;height:12px;position:relative;top:1px"><use xlink:href="#icon-fenlei"></use></svg><a class="article-meta__categories" href="/smile/categories/Java/">Java</a><i class="fas fa-angle-right article-meta-link"></i><a class="article-meta__categories" href="/smile/categories/Java/JavaSE/">JavaSE</a></span></div></div></div><a class="article-content" href="/smile/2023/06/02/Java/JavaSE/DataTime%E5%8C%85/" title="DataTime包# 文章名称"><div class="article-content-text">DataTime包LocalDateTimeDemo当前时间
12345678910111213141516171819202122232425262728293031323334353637package DateTimeDemo;import java.time.LocalDateTime;public class LocalDateTimeDemo &#123;    public static void main(String[] args) &#123;        // now()：返回当前系统时间的对象        LocalDateTime tmNow = LocalDateTime.now();        System.out.println(&quot;now(): &quot; + tmNow);        // of()：自定义日期时间对象        LocalDateTime tmOf = LocalDateTime.of(2022, 2, 14, 21, 30, 30);        System.out.println(&quot;of( ...</div></a><div class="recent-post-arrow"></div></div></div><div class="recent-post-item"><div class="recent-post-content right"><div class="recent-post-cover"><img class="article-cover" src="https://gitee.com/leesmile/image-host/raw/master/images/202310201611606.jpg" onerror="this.onerror=null;this.src='/smile/img/404.jpg'" alt="slf4j日志# 文章名称"></div><div class="recent-post-info"><a class="article-title" href="/smile/2023/05/18/Java/JavaSE/slf4j%E6%97%A5%E5%BF%97/" title="slf4j日志# 文章名称"><div class="article-title-link">slf4j日志# 文章名称</div></a><div class="recent-post-meta"><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2023-05-18T01:53:46.000Z" title="发表于 2023-05-18 09:53:46">2023-05-18</time></span><span class="article-meta"><span class="article-meta-separator"> |</span><svg class="meta_icon post-ui-icon" style="width:12px;height:12px;position:relative;top:1px"><use xlink:href="#icon-fenlei"></use></svg><a class="article-meta__categories" href="/smile/categories/Java/">Java</a><i class="fas fa-angle-right article-meta-link"></i><a class="article-meta__categories" href="/smile/categories/Java/JavaSE/">JavaSE</a></span></div></div></div><a class="article-content" href="/smile/2023/05/18/Java/JavaSE/slf4j%E6%97%A5%E5%BF%97/" title="slf4j日志# 文章名称"><div class="article-content-text">slf4j日志POM文件导入依赖，导入slf4j的日志接口和logback具体的日志实现类
12345678910111213&lt;!--  slf4j      --&gt;&lt;dependency&gt;    &lt;groupId&gt;org.slf4j&lt;/groupId&gt;    &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;    &lt;version&gt;2.0.0-alpha6&lt;/version&gt;&lt;/dependency&gt;&lt;!--   logback     --&gt;&lt;dependency&gt;    &lt;groupId&gt;ch.qos.logback&lt;/groupId&gt;    &lt;artifactId&gt;logback-classic&lt;/artifactId&gt;    &lt;version&gt;1.3.0-alpha12&lt;/version&gt;&lt;/dependency&gt;

配置logbak.xml， ...</div></a><div class="recent-post-arrow"></div></div></div><div class="recent-post-item"><div class="recent-post-content left"><div class="recent-post-cover"><img class="article-cover" src="https://gitee.com/leesmile/image-host/raw/master/images/202310271509440.jpg" onerror="this.onerror=null;this.src='/smile/img/404.jpg'" alt="断言设计思路"></div><div class="recent-post-info"><a class="article-title" href="/smile/2023/01/02/%E6%8E%A5%E5%8F%A3%E8%87%AA%E5%8A%A8%E5%8C%96/%E6%96%AD%E8%A8%80%E6%A8%A1%E5%9D%97%E8%AE%BE%E8%AE%A1%E6%80%9D%E8%B7%AF/" title="断言设计思路"><div class="article-title-link">断言设计思路</div></a><div class="recent-post-meta"><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2023-01-02T07:55:46.000Z" title="发表于 2023-01-02 15:55:46">2023-01-02</time></span><span class="article-meta"><span class="article-meta-separator"> |</span><svg class="meta_icon post-ui-icon" style="width:12px;height:12px;position:relative;top:1px"><use xlink:href="#icon-fenlei"></use></svg><a class="article-meta__categories" href="/smile/categories/%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95/">自动化测试</a><i class="fas fa-angle-right article-meta-link"></i><a class="article-meta__categories" href="/smile/categories/%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95/%E6%8E%A5%E5%8F%A3%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95/">接口自动化测试</a></span></div></div></div><a class="article-content" href="/smile/2023/01/02/%E6%8E%A5%E5%8F%A3%E8%87%AA%E5%8A%A8%E5%8C%96/%E6%96%AD%E8%A8%80%E6%A8%A1%E5%9D%97%E8%AE%BE%E8%AE%A1%E6%80%9D%E8%B7%AF/" title="断言设计思路"><div class="article-content-text">断言设计思路循环取出每一个类型断言，将assertType下的内容分发
循环取出每一组断言（携带assertType），根据将actual和expect分别分发
actual和expect分别根据source取到对应值返回
controller将assertype和actual、expect一起发给asserType类进行断言返回结果
validator
distribute for → class (type,actual,expect)
self.type
get expect → expect source sql&#x2F;jsonpath&#x2F;…
get actual → source…
assert type → assertType
{“validate”:[{“equals”:[{“actual”:{},”expect”:{}}]},{“expect”:}]}
Dict[Stirng,List[Dict[String,List[Dict[String,Any]]]]]
equals:
actual:
12345source: respContent\headers ...</div></a><div class="recent-post-arrow"></div></div></div><div class="recent-post-item"><div class="recent-post-content right"><div class="recent-post-cover"><img class="article-cover" src="https://gitee.com/leesmile/image-host/raw/master/images/202310271509440.jpg" onerror="this.onerror=null;this.src='/smile/img/404.jpg'" alt="自动化测试框架设计"></div><div class="recent-post-info"><a class="article-title" href="/smile/2023/01/02/%E6%8E%A5%E5%8F%A3%E8%87%AA%E5%8A%A8%E5%8C%96/%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95%E6%A1%86%E6%9E%B6%E8%AE%BE%E8%AE%A1%E5%8E%9F%E5%88%99/" title="自动化测试框架设计"><div class="article-title-link">自动化测试框架设计</div></a><div class="recent-post-meta"><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2023-01-02T07:55:46.000Z" title="发表于 2023-01-02 15:55:46">2023-01-02</time></span><span class="article-meta"><span class="article-meta-separator"> |</span><svg class="meta_icon post-ui-icon" style="width:12px;height:12px;position:relative;top:1px"><use xlink:href="#icon-fenlei"></use></svg><a class="article-meta__categories" href="/smile/categories/%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95/">自动化测试</a><i class="fas fa-angle-right article-meta-link"></i><a class="article-meta__categories" href="/smile/categories/%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95/%E6%8E%A5%E5%8F%A3%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95/">接口自动化测试</a></span></div></div></div><a class="article-content" href="/smile/2023/01/02/%E6%8E%A5%E5%8F%A3%E8%87%AA%E5%8A%A8%E5%8C%96/%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95%E6%A1%86%E6%9E%B6%E8%AE%BE%E8%AE%A1%E5%8E%9F%E5%88%99/" title="自动化测试框架设计"><div class="article-content-text">自动化测试框架设计
代码规范，模块清晰明确
可维护性、可拓展性： 通过各模块封装后再组装，灵活性高
错误处理机制，高效解决 ： 引入Pydantic和typing和自定义异常类
系统日志清晰，方便调试 ： 封装日志装饰器对日志分类
支持测试环境切换 ： 通过切换配置文件实现
支持外部数据驱动： 使用yaml进行外部数据的分离
支持顺序、并发、远程执行 ：通过分组设置可并发用例
报告完备详尽： 使用Allure展示报告
版本控制，持续集成 ：Jenkins + Svn

</div></a><div class="recent-post-arrow"></div></div></div><div class="recent-post-item"><div class="recent-post-content left"><div class="recent-post-cover"><img class="article-cover" src="https://gitee.com/leesmile/image-host/raw/master/images/202310271509440.jpg" onerror="this.onerror=null;this.src='/smile/img/404.jpg'" alt="Pytest+allure迭代"></div><div class="recent-post-info"><a class="article-title" href="/smile/2023/01/01/%E6%8E%A5%E5%8F%A3%E8%87%AA%E5%8A%A8%E5%8C%96/Pytest+allure%E8%BF%AD%E4%BB%A3/" title="Pytest+allure迭代"><div class="article-title-link">Pytest+allure迭代</div></a><div class="recent-post-meta"><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2023-01-01T07:55:46.000Z" title="发表于 2023-01-01 15:55:46">2023-01-01</time></span><span class="article-meta"><span class="article-meta-separator"> |</span><svg class="meta_icon post-ui-icon" style="width:12px;height:12px;position:relative;top:1px"><use xlink:href="#icon-fenlei"></use></svg><a class="article-meta__categories" href="/smile/categories/%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95/">自动化测试</a><i class="fas fa-angle-right article-meta-link"></i><a class="article-meta__categories" href="/smile/categories/%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95/%E6%8E%A5%E5%8F%A3%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95/">接口自动化测试</a></span></div></div></div><a class="article-content" href="/smile/2023/01/01/%E6%8E%A5%E5%8F%A3%E8%87%AA%E5%8A%A8%E5%8C%96/Pytest+allure%E8%BF%AD%E4%BB%A3/" title="Pytest+allure迭代"><div class="article-content-text">Pytest+allure迭代
参数依赖
类属性存储前置用例依赖数据
yaml文件中存储（可用redis替代）
conf文件中存储
单独保存在cache文件夹中
从redis的cache里面获取
接口准备数据时通过请求接口方式获取（解耦）
创造可变数据环境
faker库
sql获取参数
前置接口参数替换
http自动请求yaml数据格式转换
把httprequests单独提取出来
通过**kwargs可以自动整理params、url等
request和param处理单独提取成两个moudle
log模块变更
替换为nb_log进行润色和跳转
conftest夹具配置
allure报告配置
用例列表读取yaml外层标题等
request里附上参数
从conf文件中读取环境变量
断言
状态码校验
返回头校验
入参和出参是否符合规则
数据库落表校验
re模块更新
多线程运行
用例依赖解耦
封装自动生成用例的方法
根据配置文件生成project文件夹
根据模板生成case
从接口log日志中获取数据模板生成yaml文件
yaml - case（方法） - 接口 - 多条用例
dir - epi ...</div></a><div class="recent-post-arrow"></div></div></div><div class="recent-post-item"><div class="recent-post-content right"><div class="recent-post-cover"><img class="article-cover" src="https://gitee.com/leesmile/image-host/raw/master/images/202310271509440.jpg" onerror="this.onerror=null;this.src='/smile/img/404.jpg'" alt="框架特点"></div><div class="recent-post-info"><a class="article-title" href="/smile/2023/01/01/%E6%8E%A5%E5%8F%A3%E8%87%AA%E5%8A%A8%E5%8C%96/pytest+requests+allure%E6%A1%86%E6%9E%B6%E7%89%B9%E7%82%B9/" title="框架特点"><div class="article-title-link">框架特点</div></a><div class="recent-post-meta"><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2023-01-01T07:55:46.000Z" title="发表于 2023-01-01 15:55:46">2023-01-01</time></span><span class="article-meta"><span class="article-meta-separator"> |</span><svg class="meta_icon post-ui-icon" style="width:12px;height:12px;position:relative;top:1px"><use xlink:href="#icon-fenlei"></use></svg><a class="article-meta__categories" href="/smile/categories/%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95/">自动化测试</a><i class="fas fa-angle-right article-meta-link"></i><a class="article-meta__categories" href="/smile/categories/%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95/%E6%8E%A5%E5%8F%A3%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95/">接口自动化测试</a></span></div></div></div><a class="article-content" href="/smile/2023/01/01/%E6%8E%A5%E5%8F%A3%E8%87%AA%E5%8A%A8%E5%8C%96/pytest+requests+allure%E6%A1%86%E6%9E%B6%E7%89%B9%E7%82%B9/" title="框架特点"><div class="article-content-text">框架特点
测试数据隔离，支持外部数据驱动，支持测试环境切换
通过Yaml文件纯数据管理接口用例，可以使用数据替换工具快速维护
使用多份配置文件切换环境配置
自动生成用例代码，无需编写代码
随机业务参数
生成代码文件夹导入包
生成用例代码
动态生成随机参数，模拟真实场景
随机获取数据库指定字段值（如随机获取商品名称替换参数）
兼容多种日志格式的随机日期（’YYYY-MM-DD’或’YYYYMM’等）
通过反射调用faker库实现随机参数（如公司名、人名、邮箱）
通过管理enum管理业务值随机选项（如所有定义的票种代码规则）
可自定义参数，补充业务场景参数
sign签名，针对不同接口加密方法使用
flaky参数，针对部分接口执行失败重运行
mark标记，用例分组执行（冒烟&#x2F;回归）
完善的错误处理机制，高效解决问题
动态多断言，支持从多种途径获取断言数据
模块耦合度低，功能单独封装后组装，可维护性强
通过控制器组装，后期维护、增加功能更快更灵活
支持不同测试要求，灵活组装
精确的指定分组执行，更详细的报告，快速分析定位问题
allure报告结合jenkins生成趋势图可观察状态变化 ...</div></a><div class="recent-post-arrow"></div></div></div><div class="recent-post-item"><div class="recent-post-content left"><div class="recent-post-cover"><img class="article-cover" src="https://gitee.com/leesmile/image-host/raw/master/images/202310271509440.jpg" onerror="this.onerror=null;this.src='/smile/img/404.jpg'" alt="接口自动化断言思路"></div><div class="recent-post-info"><a class="article-title" href="/smile/2023/01/01/%E6%8E%A5%E5%8F%A3%E8%87%AA%E5%8A%A8%E5%8C%96/%E6%8E%A5%E5%8F%A3%E6%96%AD%E8%A8%80%E6%80%9D%E8%B7%AF/" title="接口自动化断言思路"><div class="article-title-link">接口自动化断言思路</div></a><div class="recent-post-meta"><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2023-01-01T07:55:46.000Z" title="发表于 2023-01-01 15:55:46">2023-01-01</time></span><span class="article-meta"><span class="article-meta-separator"> |</span><svg class="meta_icon post-ui-icon" style="width:12px;height:12px;position:relative;top:1px"><use xlink:href="#icon-fenlei"></use></svg><a class="article-meta__categories" href="/smile/categories/%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95/">自动化测试</a><i class="fas fa-angle-right article-meta-link"></i><a class="article-meta__categories" href="/smile/categories/%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95/%E6%8E%A5%E5%8F%A3%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95/">接口自动化测试</a></span></div></div></div><a class="article-content" href="/smile/2023/01/01/%E6%8E%A5%E5%8F%A3%E8%87%AA%E5%8A%A8%E5%8C%96/%E6%8E%A5%E5%8F%A3%E6%96%AD%E8%A8%80%E6%80%9D%E8%B7%AF/" title="接口自动化断言思路"><div class="article-content-text">接口自动化断言思路
响应码
对于http类接口，有时开发人员只是通过设置接口响应码来反应接口是否成功，这时我们的断言就需要检查接口响应码是否符合预期来判断用例是否执行成功

验证关键字段值
一般接口中会设有专门的字段来反馈接口成功与否的信息，比如：msg字段，经常好多接口通过该字段反应后台的处理情况，如果成功会返回成功信息，失败会返回失败原因。这样我们测试时可以直接校验该字段值来判断用例是否执行成功

正则匹配
当一个接口返回内容比较多时，但有一定规则可寻，我们可以借助正则表达式来校验检查。

数据库匹配核对
要对一个查询类接口的返回数据进行验证，我们可以采用编写SQL，到数据查询结果，然后将数据库结果与接口返回结果进行核对检查，这样就能比较准确的验证接口返回数据的正确性。

相关接口辅助验证
举个例子，比如测试一个删除接口，删除了一条记录后，如何验证接口真的把记录删除成功了，可以再调用查询接口，检查被删除的记录是否真的查询不到了，那就说明删除真的成功了


</div></a><div class="recent-post-arrow"></div></div></div><div class="recent-post-item"><div class="recent-post-content right"><div class="recent-post-cover"><img class="article-cover" src="https://gitee.com/leesmile/image-host/raw/master/images/202310271509440.jpg" onerror="this.onerror=null;this.src='/smile/img/404.jpg'" alt="接口自动化用例设计原则"></div><div class="recent-post-info"><a class="article-title" href="/smile/2023/01/01/%E6%8E%A5%E5%8F%A3%E8%87%AA%E5%8A%A8%E5%8C%96/%E6%8E%A5%E5%8F%A3%E7%94%A8%E4%BE%8B%E8%AE%BE%E8%AE%A1%E6%80%9D%E8%80%83%E6%96%B9%E5%90%91/" title="接口自动化用例设计原则"><div class="article-title-link">接口自动化用例设计原则</div></a><div class="recent-post-meta"><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2023-01-01T07:55:46.000Z" title="发表于 2023-01-01 15:55:46">2023-01-01</time></span><span class="article-meta"><span class="article-meta-separator"> |</span><svg class="meta_icon post-ui-icon" style="width:12px;height:12px;position:relative;top:1px"><use xlink:href="#icon-fenlei"></use></svg><a class="article-meta__categories" href="/smile/categories/%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95/">自动化测试</a><i class="fas fa-angle-right article-meta-link"></i><a class="article-meta__categories" href="/smile/categories/%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95/%E6%8E%A5%E5%8F%A3%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95/">接口自动化测试</a></span></div></div></div><a class="article-content" href="/smile/2023/01/01/%E6%8E%A5%E5%8F%A3%E8%87%AA%E5%8A%A8%E5%8C%96/%E6%8E%A5%E5%8F%A3%E7%94%A8%E4%BE%8B%E8%AE%BE%E8%AE%A1%E6%80%9D%E8%80%83%E6%96%B9%E5%90%91/" title="接口自动化用例设计原则"><div class="article-content-text">接口自动化用例设计原则接下来，需要根据接口需求设计测试用例，覆盖接口的所有功能和边界条件，考虑几个方面：

接口的功能是否正常
对应的业务逻辑是否能够实现
接口的字段参数校验
边界值和等价类
参数为空，多少，错误参数;
.数据一致性校验
入参和出参是否符合规则
入参是否正确落入到数据库
落表的数据是否正常同步到各个系统（针对多系统而言）
接口的字典项目是否覆盖完整
接口字典项转换到数据库和多系统是否匹配

</div></a><div class="recent-post-arrow"></div></div></div><div class="recent-post-item"><div class="recent-post-content left"><div class="recent-post-cover"><img class="article-cover" src="https://gitee.com/leesmile/image-host/raw/master/images/202310271509440.jpg" onerror="this.onerror=null;this.src='/smile/img/404.jpg'" alt="接口自动化自动化测试流程"></div><div class="recent-post-info"><a class="article-title" href="/smile/2023/01/01/%E6%8E%A5%E5%8F%A3%E8%87%AA%E5%8A%A8%E5%8C%96/%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95%E6%B5%81%E7%A8%8B/" title="接口自动化自动化测试流程"><div class="article-title-link">接口自动化自动化测试流程</div></a><div class="recent-post-meta"><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2023-01-01T07:55:46.000Z" title="发表于 2023-01-01 15:55:46">2023-01-01</time></span><span class="article-meta"><span class="article-meta-separator"> |</span><svg class="meta_icon post-ui-icon" style="width:12px;height:12px;position:relative;top:1px"><use xlink:href="#icon-fenlei"></use></svg><a class="article-meta__categories" href="/smile/categories/%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95/">自动化测试</a><i class="fas fa-angle-right article-meta-link"></i><a class="article-meta__categories" href="/smile/categories/%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95/%E6%8E%A5%E5%8F%A3%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95/">接口自动化测试</a></span></div></div></div><a class="article-content" href="/smile/2023/01/01/%E6%8E%A5%E5%8F%A3%E8%87%AA%E5%8A%A8%E5%8C%96/%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95%E6%B5%81%E7%A8%8B/" title="接口自动化自动化测试流程"><div class="article-content-text">接口自动化测试流程
接口自动化的目的：提高回归测试的效率。
自动化测试流程（UI和API）。
熟悉业务流程和场景业务
业务流程包含整体的从个人开户后展开的一系列操作，不限于股票买卖、资金转入转出、资产账户销户等。
涉及到：技术评估、版本迭代、项目复盘、缺陷复盘。


证券业务为例：
用户登录流程
用户开户流程
用户风险评测验证流程
银行卡绑定解除流程
资金转入转出流程
股票、基金、债券买卖流程


被测系统的技术架构：
请求入口：比如web端、移动端（区分Android和iOS），这会影响到后续的工具和框架选型设计。
数据库表结构：自动化测试所需的测试数据落库，以及结果校验、字段类型等都是测试过程要考虑的。
前后端技术栈：UI自动化必须熟悉前端框架，这样能避免后续的元素定位提取时出现问题，接口自动化也需要了解后端的技术框架甚至部分代码实现，有些技术难点（比如验证码、过滤规则、白名单配置、运费计算逻辑）都可以利用已有的封装好的接口或服务来快速实现。
技术组件：比如配置中心、注册中心、发布平台、代码管理工具等。


被测项目所需关注点：
自动化测试环境（和功能测试环境混用还是单独搭建）
测 ...</div></a><div class="recent-post-arrow"></div></div></div><div class="recent-post-item"><div class="recent-post-content right"><div class="recent-post-cover"><img class="article-cover" src="https://gitee.com/leesmile/image-host/raw/master/images/202310271509440.jpg" onerror="this.onerror=null;this.src='/smile/img/404.jpg'" alt="接口自动化用例设计原则"></div><div class="recent-post-info"><a class="article-title" href="/smile/2023/01/01/%E6%8E%A5%E5%8F%A3%E8%87%AA%E5%8A%A8%E5%8C%96/%E6%8E%A5%E5%8F%A3%E7%94%A8%E4%BE%8B%E8%AE%BE%E8%AE%A1%E5%8E%9F%E5%88%99/" title="接口自动化用例设计原则"><div class="article-title-link">接口自动化用例设计原则</div></a><div class="recent-post-meta"><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2023-01-01T07:55:46.000Z" title="发表于 2023-01-01 15:55:46">2023-01-01</time></span><span class="article-meta"><span class="article-meta-separator"> |</span><svg class="meta_icon post-ui-icon" style="width:12px;height:12px;position:relative;top:1px"><use xlink:href="#icon-fenlei"></use></svg><a class="article-meta__categories" href="/smile/categories/%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95/">自动化测试</a><i class="fas fa-angle-right article-meta-link"></i><a class="article-meta__categories" href="/smile/categories/%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95/%E6%8E%A5%E5%8F%A3%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95/">接口自动化测试</a></span></div></div></div><a class="article-content" href="/smile/2023/01/01/%E6%8E%A5%E5%8F%A3%E8%87%AA%E5%8A%A8%E5%8C%96/%E6%8E%A5%E5%8F%A3%E7%94%A8%E4%BE%8B%E8%AE%BE%E8%AE%A1%E5%8E%9F%E5%88%99/" title="接口自动化用例设计原则"><div class="article-content-text">接口自动化用例设计原则
自动化测试的使用场景
冒烟测试
冒烟测试的目的是为正式测试前，验证是否产品或系统的主要需求或预置条件是否存在bug
设计出自动化测试脚本，每一次版本更新后都可以去执行脚本验证一下


回归测试
当软件发生变化时我们就必须重新测试现有的功能，以便确定修改是否达到了预期的目的，检查修改是否破坏原有的正常功能。


自动化测试用例设计原则
设计原则
测试用例是一个完整的场景。从用户登录系统到用户退出
测试用例只验证一个功能点。不要试图用户登录后验证所有的功能点再退出
测试用例尽量只做正向的逻辑验证，正向是指脚本可实现的而非主观操作。逆向逻辑的情况很多，验证比较复杂，需要编写大量的脚本，投入成本比较高
测试用例之间不要产生关联，也就是说每个测试用例是独立，不能依赖或影响其他测试用例，要求高内聚低耦合
测试用例需要更多的关注功能逻辑的实现，而不必纠结某些字段的限制
测试用例的上下文必须有一定的顺序性，要能够互相连接起来；并且前置条件要清楚
测试用例中检查点的设置（根据测试用例的侧重点设置检测点、设置检测点要全面和设置检测点要灵活）
测试用例要对修改的数据进行还原操作
测试 ...</div></a><div class="recent-post-arrow"></div></div></div><nav id="pagination"><div class="pagination"><a class="extend prev" rel="prev" href="/smile/page/11/#content-inner"><i class="fas fa-chevron-left fa-fw"></i></a><a class="page-number" href="/smile/">1</a><span class="space">&hellip;</span><a class="page-number" href="/smile/page/11/#content-inner">11</a><span class="page-number current">12</span></div></nav></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="author_top is-center"><div class="avatar-img"><img src="https://leesmile.gitee.io/smile/img/avatarImg.bmp" onerror="this.onerror=null;this.src='/smile/img/friend_404.gif'" alt="avatar"/></div><div class="author-info__name">Xuan</div><div class="author-info__description"></div></div><div class="card-info-data site-data is-center"><a href="/smile/archives/"><div class="headline">文章</div><div class="length-num">142</div></a><a href="/smile/tags/"><div class="headline">标签</div><div class="length-num">36</div></a><a href="/smile/categories/"><div class="headline">分类</div><div class="length-num">32</div></a></div><a id="card-info-btn" target="_blank" rel="noopener" href="https://github.com/xxxxxx"><i class="fab fa-github"></i><span>Follow Me</span></a></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn fa-shake"></i><span>公告</span></div><div class="announcement_content">This is my Blog</div></div><div class="sticky_layout"><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item"><a class="thumbnail" href="/smile/2024/04/08/%E4%B8%8D%E5%90%8C%E8%A7%92%E5%BA%A6%E5%87%BA%E5%8F%91%E5%8E%BB%E9%9C%80%E6%B1%82%E6%B2%9F%E9%80%9A%E9%97%AE%E9%A2%98/" title="不同角度出发去需求沟通问题"><img src="https://gitee.com/leesmile/image-host/raw/master/images/202310271509358.jpg" onerror="this.onerror=null;this.src='/smile/img/404.jpg'" alt="不同角度出发去需求沟通问题"/></a><div class="content"><a class="title" href="/smile/2024/04/08/%E4%B8%8D%E5%90%8C%E8%A7%92%E5%BA%A6%E5%87%BA%E5%8F%91%E5%8E%BB%E9%9C%80%E6%B1%82%E6%B2%9F%E9%80%9A%E9%97%AE%E9%A2%98/" title="不同角度出发去需求沟通问题">不同角度出发去需求沟通问题</a><time datetime="2024-04-08T07:55:46.000Z" title="发表于 2024-04-08 15:55:46">2024-04-08</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/smile/2024/04/01/%E4%BA%A7%E5%93%81%E5%95%86%E4%B8%9A%E8%AE%A1%E5%88%92%E6%96%B9%E5%90%91%E6%80%9D%E8%80%83/" title="产品商业计划方向思考"><img src="https://gitee.com/leesmile/image-host/raw/master/images/202310271509358.jpg" onerror="this.onerror=null;this.src='/smile/img/404.jpg'" alt="产品商业计划方向思考"/></a><div class="content"><a class="title" href="/smile/2024/04/01/%E4%BA%A7%E5%93%81%E5%95%86%E4%B8%9A%E8%AE%A1%E5%88%92%E6%96%B9%E5%90%91%E6%80%9D%E8%80%83/" title="产品商业计划方向思考">产品商业计划方向思考</a><time datetime="2024-04-01T07:55:46.000Z" title="发表于 2024-04-01 15:55:46">2024-04-01</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/smile/2024/03/28/%E5%85%AC%E5%8F%B8%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95%E8%90%BD%E5%9C%B0%E7%9A%84%E9%9A%BE%E7%82%B9/" title="公司自动化测试落地的难点"><img src="https://gitee.com/leesmile/image-host/raw/master/images/202310271509358.jpg" onerror="this.onerror=null;this.src='/smile/img/404.jpg'" alt="公司自动化测试落地的难点"/></a><div class="content"><a class="title" href="/smile/2024/03/28/%E5%85%AC%E5%8F%B8%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95%E8%90%BD%E5%9C%B0%E7%9A%84%E9%9A%BE%E7%82%B9/" title="公司自动化测试落地的难点">公司自动化测试落地的难点</a><time datetime="2024-03-28T07:55:46.000Z" title="发表于 2024-03-28 15:55:46">2024-03-28</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/smile/2024/03/22/%E5%BC%82%E6%AD%A5%E4%BB%BB%E5%8A%A1%E7%9A%84%E5%85%B3%E9%94%AE%E5%9C%A8%E4%BA%A4%E4%BA%92%E8%AE%BE%E8%AE%A1/" title="异步任务的体验关键在交互设计"><img src="https://gitee.com/leesmile/image-host/raw/master/images/202310271509358.jpg" onerror="this.onerror=null;this.src='/smile/img/404.jpg'" alt="异步任务的体验关键在交互设计"/></a><div class="content"><a class="title" href="/smile/2024/03/22/%E5%BC%82%E6%AD%A5%E4%BB%BB%E5%8A%A1%E7%9A%84%E5%85%B3%E9%94%AE%E5%9C%A8%E4%BA%A4%E4%BA%92%E8%AE%BE%E8%AE%A1/" title="异步任务的体验关键在交互设计">异步任务的体验关键在交互设计</a><time datetime="2024-03-22T07:55:46.000Z" title="发表于 2024-03-22 15:55:46">2024-03-22</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/smile/2024/03/11/Git%E5%B7%A5%E4%BD%9C%E6%B5%81/" title="Git工作流"><img src="https://gitee.com/leesmile/image-host/raw/master/images/202310261354386.jpg" onerror="this.onerror=null;this.src='/smile/img/404.jpg'" alt="Git工作流"/></a><div class="content"><a class="title" href="/smile/2024/03/11/Git%E5%B7%A5%E4%BD%9C%E6%B5%81/" title="Git工作流">Git工作流</a><time datetime="2024-03-11T07:55:46.000Z" title="发表于 2024-03-11 15:55:46">2024-03-11</time></div></div></div></div><div class="card-widget card-categories"><div class="item-headline">
            <i class="fas fa-folder-open"></i>
            <span>分类</span>
            <a class="card-more-btn" href="/smile/categories/" title="查看更多">
    <i class="fas fa-angle-right"></i></a>
            </div>
            <ul class="card-category-list" id="aside-cat-list">
            <li class="card-category-list-item "><a class="card-category-list-link" href="/smile/categories/ELK/"><span class="card-category-list-name">ELK</span><span class="card-category-list-count">1</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/smile/categories/Gitee/"><span class="card-category-list-name">Gitee</span><span class="card-category-list-count">1</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/smile/categories/Java/"><span class="card-category-list-name">Java</span><span class="card-category-list-count">74</span></a><ul class="card-category-list child"><li class="card-category-list-item "><a class="card-category-list-link" href="/smile/categories/Java/JavaSE/"><span class="card-category-list-name">JavaSE</span><span class="card-category-list-count">10</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/smile/categories/Java/JavaWeb/"><span class="card-category-list-name">JavaWeb</span><span class="card-category-list-count">4</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/smile/categories/Java/MySQL/"><span class="card-category-list-name">MySQL</span><span class="card-category-list-count">3</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/smile/categories/Java/Spring/"><span class="card-category-list-name">Spring</span><span class="card-category-list-count">7</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/smile/categories/Java/SpringBoot/"><span class="card-category-list-name">SpringBoot</span><span class="card-category-list-count">7</span></a></li></ul></li>
            </ul></div><div class="card-widget card-tags"><div class="item-headline"><i class="fas fa-tags"></i><span>标签</span></div><div class="card-tag-cloud"><a href="/smile/tags/docker/" style="font-size: 1.14em; color: #999a9c">docker</a> <a href="/smile/tags/%E7%BA%BF%E7%A8%8B/" style="font-size: 1.17em; color: #999ca0">线程</a> <a href="/smile/tags/windows/" style="font-size: 1.1em; color: #999">windows</a> <a href="/smile/tags/%E5%BA%8F%E5%88%97%E5%8C%96%E5%92%8C%E5%8F%8D%E5%BA%8F%E5%88%97%E5%8C%96/" style="font-size: 1.14em; color: #999a9c">序列化和反序列化</a> <a href="/smile/tags/SQL/" style="font-size: 1.1em; color: #999">SQL</a> <a href="/smile/tags/Linux/" style="font-size: 1.32em; color: #99a2ae">Linux</a> <a href="/smile/tags/JavaScript/" style="font-size: 1.25em; color: #999fa7">JavaScript</a> <a href="/smile/tags/Java/" style="font-size: 1.5em; color: #99a9bf">Java</a> <a href="/smile/tags/git/" style="font-size: 1.1em; color: #999">git</a> <a href="/smile/tags/rabbitMQ/" style="font-size: 1.46em; color: #99a8bc">rabbitMQ</a> <a href="/smile/tags/aop/" style="font-size: 1.1em; color: #999">aop</a> <a href="/smile/tags/Socket/" style="font-size: 1.1em; color: #999">Socket</a> <a href="/smile/tags/%E5%89%8D%E7%AB%AF/" style="font-size: 1.21em; color: #999da3">前端</a> <a href="/smile/tags/SpringBoot/" style="font-size: 1.25em; color: #999fa7">SpringBoot</a> <a href="/smile/tags/%E6%95%B0%E6%8D%AE%E5%A4%84%E7%90%86/" style="font-size: 1.14em; color: #999a9c">数据处理</a> <a href="/smile/tags/%E7%AB%AF%E5%8F%A3/" style="font-size: 1.14em; color: #999a9c">端口</a> <a href="/smile/tags/Gitee/" style="font-size: 1.1em; color: #999">Gitee</a> <a href="/smile/tags/MySQL/" style="font-size: 1.17em; color: #999ca0">MySQL</a> <a href="/smile/tags/%E6%80%9D%E8%80%83/" style="font-size: 1.1em; color: #999">思考</a> <a href="/smile/tags/%E5%9B%BE%E5%BA%8A/" style="font-size: 1.1em; color: #999">图床</a> <a href="/smile/tags/nvm/" style="font-size: 1.1em; color: #999">nvm</a> <a href="/smile/tags/%E4%B8%9A%E5%8A%A1/" style="font-size: 1.25em; color: #999fa7">业务</a> <a href="/smile/tags/%E9%9B%86%E5%90%88%E6%A1%86%E6%9E%B6/" style="font-size: 1.35em; color: #99a3b1">集合框架</a> <a href="/smile/tags/Selenium/" style="font-size: 1.28em; color: #99a0aa">Selenium</a> <a href="/smile/tags/IDEA/" style="font-size: 1.17em; color: #999ca0">IDEA</a> <a href="/smile/tags/%E6%B5%8B%E8%AF%95%E5%B9%B3%E5%8F%B0/" style="font-size: 1.14em; color: #999a9c">测试平台</a> <a href="/smile/tags/%E6%8E%A5%E5%8F%A3/" style="font-size: 1.32em; color: #99a2ae">接口</a> <a href="/smile/tags/%E4%B8%AD%E9%97%B4%E4%BB%B6/" style="font-size: 1.43em; color: #99a6b8">中间件</a> <a href="/smile/tags/%E8%87%AA%E5%8A%A8%E5%8C%96%E6%B5%8B%E8%AF%95/" style="font-size: 1.39em; color: #99a5b5">自动化测试</a> <a href="/smile/tags/%E6%B5%8B%E8%AF%95%E6%96%B9%E6%A1%88%E8%AE%BE%E8%AE%A1/" style="font-size: 1.1em; color: #999">测试方案设计</a> <a href="/smile/tags/ELK/" style="font-size: 1.1em; color: #999">ELK</a> <a href="/smile/tags/%E4%BB%A3%E7%90%86/" style="font-size: 1.1em; color: #999">代理</a> <a href="/smile/tags/JDK/" style="font-size: 1.1em; color: #999">JDK</a> <a href="/smile/tags/%E6%80%A7%E8%83%BD%E6%B5%8B%E8%AF%95/" style="font-size: 1.21em; color: #999da3">性能测试</a> <a href="/smile/tags/%E6%80%A7%E8%83%BD%E7%BB%9F%E8%AE%A1/" style="font-size: 1.1em; color: #999">性能统计</a> <a href="/smile/tags/JavaWeb/" style="font-size: 1.1em; color: #999">JavaWeb</a></div></div><div class="card-widget card-archives"><div class="item-headline"><i class="fas fa-archive"></i><span>归档</span><a class="card-more-btn" href="/smile/archives/" title="查看更多">
    <i class="fas fa-angle-right"></i></a></div><ul class="card-archive-list"><li class="card-archive-list-item"><a class="card-archive-list-link" href="/smile/archives/2024/04/"><span class="card-archive-list-date">四月 2024</span><span class="card-archive-list-count">2</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/smile/archives/2024/03/"><span class="card-archive-list-date">三月 2024</span><span class="card-archive-list-count">8</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/smile/archives/2024/02/"><span class="card-archive-list-date">二月 2024</span><span class="card-archive-list-count">6</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/smile/archives/2024/01/"><span class="card-archive-list-date">一月 2024</span><span class="card-archive-list-count">17</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/smile/archives/2023/12/"><span class="card-archive-list-date">十二月 2023</span><span class="card-archive-list-count">13</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/smile/archives/2023/11/"><span class="card-archive-list-date">十一月 2023</span><span class="card-archive-list-count">22</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/smile/archives/2023/10/"><span class="card-archive-list-date">十月 2023</span><span class="card-archive-list-count">19</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/smile/archives/2023/08/"><span class="card-archive-list-date">八月 2023</span><span class="card-archive-list-count">4</span></a></li></ul></div><div class="card-widget card-webinfo"><div class="item-headline"><i class="fas fa-chart-line"></i><span>网站资讯</span></div><div class="webinfo"><div class="webinfo-item"><div class="item-name">文章数目 :</div><div class="item-count">142</div></div><div class="webinfo-item"><div class="item-name">本站访客数 :</div><div class="item-count" id="busuanzi_value_site_uv"><i class="fa-solid fa-spinner fa-spin"></i></div></div><div class="webinfo-item"><div class="item-name">本站总访问量 :</div><div class="item-count" id="busuanzi_value_site_pv"><i class="fa-solid fa-spinner fa-spin"></i></div></div><div class="webinfo-item"><div class="item-name">最后更新时间 :</div><div class="item-count" id="last-push-date" data-lastPushDate="2024-04-09T01:45:26.864Z"><i class="fa-solid fa-spinner fa-spin"></i></div></div></div></div></div></div></main><footer id="footer"><div id="footer-wrap"><div class="copyright">&copy;2020 - 2024 By Xuan</div><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button id="go-up" type="button" title="回到顶部"><span class="scroll-percent"></span><i class="fas fa-arrow-up"></i><span id="percent">0<span>%</span></span></button><button id="go-down" type="button" title="直达底部" onclick="btf.scrollToDest(document.body.scrollHeight, 500)"><i class="fas fa-arrow-down"></i></button></div></div><div><script src="/smile/js/utils.js"></script><script src="/smile/js/main.js"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox/fancybox.umd.min.js"></script><div class="js-pjax"></div><script async src="https://cdn1.tianli0.top/npm/vue@2.6.14/dist/vue.min.js"></script><script async src="https://cdn1.tianli0.top/npm/element-ui@2.15.6/lib/index.js"></script><script defer src="/js/cursor.js"></script><script async src="//npm.elemecdn.com/pace-js@1.2.4/pace.min.js"></script><script defer src="https://npm.elemecdn.com/jquery@latest/dist/jquery.min.js"></script><script defer data-pjax src="/js/cat.js"></script><script defer data-pjax src="/js/readPercent.js"></script><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div><!-- hexo injector body_end start --> <script data-pjax>if(document.getElementById('recent-posts') && (location.pathname ==='/'|| '/' ==='all')){
    var parent = document.getElementById('recent-posts');
    var child = '<div class="recent-post-item" style="width:100%;height: auto"><div id="catalog_magnet"><a class="magnet_link_more"  href="http://leesmile.gitee.io/smile/categories" style="flex:1;text-align: center;margin-bottom: 10px;">查看更多...</a></div></div>';
    console.log('已挂载magnet')
    parent.insertAdjacentHTML("afterbegin",child)}
     </script><style>#catalog_magnet{flex-wrap: wrap;display: flex;width:100%;justify-content:space-between;padding: 10px 10px 0 10px;align-content: flex-start;}.magnet_item{flex-basis: calc(50% - 5px);background: #87CEFA;margin-bottom: 10px;border-radius: 8px;transition: all 0.2s ease-in-out;}.magnet_item:hover{background: #00FFFF}.magnet_link_more{color:#555}.magnet_link{color:black}.magnet_link:hover{color:white}@media screen and (max-width: 600px) {.magnet_item {flex-basis: 100%;}}.magnet_link_context{display:flex;padding: 10px;font-size:16px;transition: all 0.2s ease-in-out;}.magnet_link_context:hover{padding: 10px 20px;}</style>
    <style></style><script data-pjax>
  function butterfly_footer_beautify_injector_config(){
    var parent_div_git = document.getElementById('footer-wrap');
    var item_html = '<div id="workboard"></div><p id="ghbdages"><a class="github-badge" target="_blank" href="https://hexo.io/" style="margin-inline:5px" data-title="博客框架为Hexo_v6.2.0" title=""><img src="https://img.shields.io/badge/Frame-Hexo-blue?style=flat&amp;logo=hexo" alt=""/></a><a class="github-badge" target="_blank" href="https://butterfly.js.org/" style="margin-inline:5px" data-title="主题版本Butterfly_v4.3.1" title=""><img src="https://img.shields.io/badge/Theme-Butterfly-6513df?style=flat&amp;logo=bitdefender" alt=""/></a><a class="github-badge" target="_blank" href="https://gitee.com/" style="margin-inline:5px" data-title="本站项目由Gitee托管" title=""><img src="https://img.shields.io/badge/Source-Github-d021d6?style=flat&amp;logo=GitHub" alt=""/></a><a class="github-badge" target="_blank" href="http://creativecommons.org/licenses/by-nc-sa/4.0/" style="margin-inline:5px" data-title="本站采用知识共享署名-非商业性使用-相同方式共享4.0国际许可协议进行许可" title=""><img src="https://img.shields.io/badge/Copyright-BY--NC--SA%204.0-d42328?style=flat&amp;logo=Claris" alt=""/></a></p>';
    console.log('已挂载butterfly_footer_beautify')
    parent_div_git.insertAdjacentHTML("beforeend",item_html)
    }
  var elist = 'null'.split(',');
  var cpage = location.pathname;
  var epage = 'all';
  var flag = 0;

  for (var i=0;i<elist.length;i++){
    if (cpage.includes(elist[i])){
      flag++;
    }
  }

  if ((epage ==='all')&&(flag == 0)){
    butterfly_footer_beautify_injector_config();
  }
  else if (epage === cpage){
    butterfly_footer_beautify_injector_config();
  }
  </script><script async src="https://npm.elemecdn.com/hexo-butterfly-footer-beautify@1.0.0/lib/runtime.js"></script><!-- hexo injector body_end end --></body></html>